GtkActionHelper: Fix a copy-paste error
authorMatthias Clasen <mclasen@redhat.com>
Fri, 30 Nov 2012 03:12:58 +0000 (22:12 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Nov 2012 04:10:34 +0000 (23:10 -0500)
The code clearly meant to reset action->active here.

This was found by Coverity.

gtk/gtkactionhelper.c

index a3a0c46a0762f761e874a1582e60782c6aef318f..0445a5eb558aff237d883fa62e72e0041528d933 100644 (file)
@@ -189,7 +189,7 @@ gtk_action_helper_action_removed (GtkActionHelper *helper)
 
   if (helper->active)
     {
-      helper->enabled = FALSE;
+      helper->active = FALSE;
       gtk_action_helper_report_change (helper, PROP_ACTIVE);
     }